<!DOCTYPE html>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix='fmt' uri='http://java.sun.com/jsp/jstl/fmt' %>
<%@ page import="java.util.Date"%>
<% pageContext.setAttribute("dtIni", new Date()); %>
<% pageContext.setAttribute("dtFim", new Date(new Date().getTime() - (7 * 24 * 3600000)));%>
<h4>Visualizar Cliente</h4>
<form action="controladora?action=ListaClientes" method="POST">
    <table class="apresentacao" style="width: 100%">
        <col style="width: 150px" />
        <col />
        <tr>       
            <th>
                Nome:
            </th>
            <td style="text-align: center">
                ${requestScope.cliente.nome}
            </td>
        </tr>
        <tr>
            <th>
                CPF:
            </th>
            <td id="cpfText" style="text-align: center">
                ${requestScope.cliente.getCPFString()}   
            </td>
        </tr>
        <tr>
            <th>
                Nascimento:
            </th>
            <td style="text-align: center">
                <fmt:formatDate value="${requestScope.cliente.dtnascimento}" pattern="dd/MM/yyyy" />
            </td>
        </tr>
        <tr>
            <th>
                Sexo:
            </th>
            <td style="text-align: center">
                ${requestScope.cliente.sexo == true ? "masculino" : "feminino"}
            </td>
        </tr>
        <tr>
            <th>
                Rua:
            </th>
            <td style="text-align: center">
                ${requestScope.cliente.logradouro}
            </td>
        </tr>
        <tr>
            <th>
                Nº:
            </th>
            <td style="text-align: center">
                ${requestScope.cliente.numero}
            </td>
        </tr>
        <tr>
            <th>
                Cidade:
            </th>
            <td style="text-align: center">
                ${requestScope.cliente.cidade}
            </td>
        </tr>
        <tr>
            <th>
                UF:
            </th>
            <td style="text-align: center">
                ${requestScope.cliente.estado.descricao}
            </td>
        </tr>
        <tr>
            <th>
                E-mail:
            </th>
            <td style="text-align: center">
                ${requestScope.cliente.email}
            </td>
        </tr>
        <tr>
            <th>
                Cep:
            </th> 
            <td style="text-align: center">
                ${requestScope.cliente.cep}
            </td>
        </tr>
        <tr>
            <th>
                Bairro:
            </th>
            <td style="text-align: center">
                ${requestScope.cliente.bairro}
            </td>
        </tr>
    </table>
    <br>
    <table style="width: 100%">
        <tr>
            <td style="text-align: right">
                <input type="submit" name="btnVoltar" class="laranja medio" value="Voltar"/>
            </td>
        </tr>
    </table>
</form>

